package com.qf.util;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 2019/10/9
 * Administrator
 * springboot1009
 * 面向对象面向君  不负代码不负卿
 */
@ControllerAdvice
public class ExceptionUtil {
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public String exception(){
        System.out.println("aaaaabbbbbbbbbbbb");
        return "haveerror";
    }
}
